/*
 * Copyright (c) 2003-2005
 * XDoclet Team
 * All rights reserved.
 */
package org.xdoclet.plugin.hibernate;

import java.io.File;

import java.net.URL;

import org.generama.MetadataProvider;

import org.xdoclet.QDoxMetadataProvider;

/**
 * Test case for hierarchical class structure. We should use information (doclets)
 * from all parent classes (excluding java.lang.Object) and all implemented interfaces.
 *
 * @author Anatol Pomozov
 */
public class HierarchyTestCase extends AbstractHibernateMappingTestCase {
    protected URL getExpected() throws Exception {
        return getResourceRelativeToThisPackage("hierarchy/DeepHierarchyMapping.hbm.xml");
    }

    protected MetadataProvider createMetadataProvider() throws Exception {
        URL reader = getResourceRelativeToThisPackage("hierarchy");
        return new QDoxMetadataProvider(new File(reader.getPath()));
    }
}